<?php
/**
 * @auther:周卫星
 * @date:2019/10/31
 * @fileName:login.blade.php
 * @fileDesc: 商户登录页面
 */
?>

    <!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商户登录</title>
    <link rel="stylesheet" href="{{ \Illuminate\Support\Facades\URL::asset('layui/css/layui.css') }}">
    <style>
        .login-logo{ margin:0 auto 10px; width:100%; height:42px; font-size:18px; text-align:center; color:#fff; line-height:42px; background:url(logo.png) no-repeat; }
        .layui-login-btn-hover{background: #0C4B77;}
        .layui-login-btn-hover:hover {background-color: #46a5f1;}
    </style>
</head>
<body style="background-color:#267cb7; text-align: center;">
<div class="layui-fluid">
    <div style="height: 300px">&nbsp;</div>
    <div class="login-logo">APUS商户后台</div>
    <form class="layui-form layui-row" id="loginForm" action="{{ url('doLogin') }}" method="post">
        <input type="hidden" name="_token" value="{{ csrf_token() }}" />
        <div
            class="layui-form-item layui-col-xs4 layui-col-xs-offset4 layui-col-sm4 layui-col-sm-offset4 layui-col-md4 layui-col-md-offset4">
            <input type="text" name="biz_name" required lay-verify="required|adminName" placeholder="用户名" autocomplete="on" class="layui-input">
        </div>
        <div
            class="layui-form-item layui-col-xs4 layui-col-xs-offset4 layui-col-sm4 layui-col-sm-offset4 layui-col-md4 layui-col-md-offset4">
            <input type="password" name="biz_pwd" required lay-verify="required|adminPwd" placeholder="密码" autocomplete="on" class="layui-input">
        </div>
        <div
            class="layui-form-item layui-col-xs4 layui-col-xs-offset4 layui-col-sm4 layui-col-sm-offset4 layui-col-md4 layui-col-md-offset4">
            <button class="layui-btn layui-btn-fluid layui-login-btn-hover" lay-submit lay-filter="formDemo">登录</button>
        </div>
    </form>
</div>
</body>
</html>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="{{ \Illuminate\Support\Facades\URL::asset('layui/layui.js') }}"></script>
<script src="{{ \Illuminate\Support\Facades\URL::asset('js/biz/login.js') }}"></script>
@if(session() -> has('illegal'))
    <script>
        errorMessage({{ session() -> pull('illegal') }});
    </script>
@endif
